package com.wlps.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wlps.entity.Client;
import com.wlps.entity.Order;
import com.wlps.mapper.ClientMapper;
import com.wlps.mapper.OrderMapper;
import com.wlps.service.IClientService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wlps.vo.ClientOrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 客户表（client）(如果要删除的客户已经订购过商品，不能删除) 服务实现类
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
@Service
public class ClientServiceImpl extends ServiceImpl<ClientMapper, Client> implements IClientService {
    @Resource
    ClientMapper clientMapper;
    public ClientOrderVo findClientDetail(long id){
        return  clientMapper.findClientDetail(id);
    }
}
